/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.zeos;

import java.util.Locale;

/**
 *
 * @author Victor
 */
public class ZLanguage {

    public final static int english = 0;
    public final static int portuguese = 1;
    //public final static int spanish = 2;

    public static enum languages {

        English,
        Portuguese
    };

    public static String deleteMensage = null;
    public static String firstButton = null;
    public static String previousButton = null;
    public static String nextButton = null;
    public static String lastButton = null;
    public static String addButton = null;
    public static String applyButton = null;
    public static String removeButton = null;
    public static String okButton = null;
    public static String gotoHell = null;

    public ZLanguage() {
        Locale locale = Locale.getDefault();
        String lang = locale.getDisplayLanguage();
        String country = locale.getDisplayCountry();
        if(lang.equalsIgnoreCase("português")){
            setLanguage(languages.Portuguese);            
        }else{
            setLanguage(languages.English);
        }
    }

    public static void setLanguage(languages lang) {
        switch (lang) {
            case English:
                deleteMensage = "Would you like to remove this data?";
                firstButton = "First";
                previousButton = "Previous";
                nextButton = "Next";
                lastButton = "Last";
                addButton = "Add";
                applyButton = "Apply";
                removeButton = "Remove";
                okButton = "Ok";
                gotoHell = "Not Ok";
                break;
            case Portuguese:
                deleteMensage = "Você gostaria de remover este dado?";
                firstButton = "Primeiro";
                previousButton = "Anterior";
                nextButton = "Próximo";
                lastButton = "Último";
                addButton = "Adicionar";
                applyButton = "Aplicar";
                removeButton = "Remover";
                okButton = "Ok";
                gotoHell = "Vai pro inferno ";
                break;
        }
    }
}
